import request from '@/utils/request'
export function listServiceNeedType(typeId){
  return request({
    url: '/serviceNeed/serviceNeed/content/'+typeId,
    method: 'get',

  })
}
// 查询需求服务列表
export function listServiceNeed(query) {
  return request({
    url: '/serviceNeed/serviceNeed/list',
    method: 'get',
    params: query
  })
}

// 查询需求服务详细
export function getServiceNeed(serviceId) {
  return request({
    url: '/serviceNeed/serviceNeed/' + serviceId,
    method: 'get'
  })
}

// 新增需求服务
export function addServiceNeed(data) {
  return request({
    url: '/serviceNeed/serviceNeed',
    method: 'post',
    data: data
  })
}

// 修改需求服务
export function updateServiceNeed(data) {
  return request({
    url: '/serviceNeed/serviceNeed',
    method: 'put',
    data: data
  })
}

// 删除需求服务
export function delServiceNeed(serviceId) {
  return request({
    url: '/serviceNeed/serviceNeed/' + serviceId,
    method: 'delete'
  })
}
